package com.bird.extension.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: sijunqiang
 * @Date: 2020/4/6 15:08
 * @Description: declare an annotation about personal information
 */
@Target(ElementType.FIELD) // the annotation can only be used on member variables
@Retention(RetentionPolicy.RUNTIME) //the scope of this annotation is running
public @interface PersonInfoAnnotation {


    /**
     *  name property
     */
    public String name();

    /**
     *  age property
     */
    public int age() default 25;

    /**
     *  gender proper
     */
    public String gender() default "man";

    /**
     * language proper
     */
    public String[] language();

}
